home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / tesla / goldirules.tex < prev    next >
Text File  |  1994-08-09  |  1KB  |  35 lines

  1. ;
  2. ; goldilocks.tex
  3. ;
  4. ;
  5. ; This is the Goldilocks example that uses the TeSLa package that is the
  6. ; subject of the paper entitled "An Example Special Purpose Input Language
  7. ; to LaTeX" that was (will be) presented to the TUG94 conference in
  8. ; Santa Barabara.
  9. ;
  10. ; Please see goldilocks.tex and tesla.sty for more details.
  11. ; =========================================================
  12. ;
  13.  
  14. ;
  15. ; Define the Knowledge Base variables to be documented
  16. ;
  17. [tvar   | min        | the minimum acceptable temperature ]
  18. [tvar   | max        | the maximum acceptable temperature ]
  19. [tvar   | T          | the temperature                    ]
  20. [tvar   | too-cold   | the porridge is too cold       ]
  21. [tvar   | too-hot    | the porridge is too hot        ]
  22. [tvar   | just-right | the porridge is just right     ]
  23.  
  24. ;
  25. ; Now document the rules
  26. ;
  27. [tgroup | Goldilocks' | 2 ]
  28. [ttext    | These are the rules that model Goldilocks' decision process. ]
  29. [trule  | T < min  |          | too-cold _ _    ]
  30. [trule  | _        | T > max  | too-hot _ _     ]
  31. [trule  | min <= T | T <= max | just-right _  _ ]
  32. [tgroup | Goldilocks' | e ]
  33.  
  34.  
  35.